﻿@model JuniorProject.Models.Employee.EmployeeJobPostingModel

@{
    ViewBag.Title = "Job Details";
}

<h2>
Job Posting Details - ID #@Model.ID
</h2>
<br />

<fieldset>
    <legend>Job Postings</legend>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.JobTitle)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.JobTitle)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.LocationCity)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LocationCity)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.LocationState)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LocationState)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.PostingDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PostingDate.Month).
        @Html.DisplayFor(model => model.PostingDate.Day).
        @Html.DisplayFor(model => model.PostingDate.Year)
    </div>
</fieldset>
<p>
    @if (string.Equals(ViewData["AccessLevel"], "3") || string.Equals(ViewData["AccessLevel"], "4") ||
        string.Equals(ViewData["AccessLevel"], "2"))
    {
        @Html.ActionLink("Edit Posting Details", "EditJobPosting", new { id = Model.ID })<br />        
    }
    @if (string.Equals(ViewData["AccessLevel"], "3") || string.Equals(ViewData["AccessLevel"], "2"))
    {
        @Html.ActionLink("Hire an Applicant for this Job", "SelectApplicant", new { postingID = Model.ID })<br />        
    }
    @Html.ActionLink("Back to List", "JobPostings")
</p>
<p>
    @Html.Partial("_EmployeeBottomNavBar", ViewData["AccessLevel"])
</p>